package com.xbongbong.paas.pojo.imports;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * Excel单元格的值
 *
 * @author GuoJun.HU
 * @since V1.0
 * @date 2019/4/25 19:21
 */
@Setter
@Getter
@ToString
public class CellValuePojo implements Serializable {

    /**
     * 单元格的值
     */
    private Object value;
    /**
     * 标题名称
     */
    private String title;
    /**
     * 一级子表单(子表单才有父标题)
     */
    private String parentTitle;
    /**
     * 二级子表单
     */
    private String secondParentTitle;
    /**
     * 三级子表单
     */
    private String thirdParentTitle;
    /**
     * 对应Excel的第几列
     */
    private Integer columnIndex;

    public CellValuePojo() {
    }

    public CellValuePojo(Object value, String title, String parentTitle, Integer columnIndex) {
        this.value = value;
        this.title = title;
        this.parentTitle = parentTitle;
        this.columnIndex = columnIndex;
    }

    public CellValuePojo(Object value, String title,String parentTitle, String secondParentTitle, Integer columnIndex) {
        this.value = value;
        this.title = title;
        this.parentTitle = parentTitle;
        this.secondParentTitle = secondParentTitle;
        this.columnIndex = columnIndex;
    }

    public CellValuePojo(Object value, String title,String parentTitle, String secondParentTitle, String thirdParentTitle, Integer columnIndex) {
        this.value = value;
        this.title = title;
        this.parentTitle = parentTitle;
        this.secondParentTitle = secondParentTitle;
        this.thirdParentTitle = thirdParentTitle;
        this.columnIndex = columnIndex;
    }
}
